/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package persistencia;

import java.sql.Connection;
import java.util.Collection;
import modelo.Boleta;

/**
 *Capa encargada de ejecutar la logica de boleta
 * 
 * @author Felipe
 */
public class BoletaBean {

    private BoletaDAO dao;

    public BoletaBean(Connection conexion) {

        dao = new BoletaDAO();
        dao.setConexion(conexion);
    }

    public Collection<Boleta> buscarTodos() {
        
    Collection<Boleta> bole = dao.buscarTodos();
       
        return bole;
        
    }

    public Boleta BuscarBoleta(int codBol) {
        
        
        
        
        Boleta bol = dao.buscar(codBol);
        return bol;
    }

}
